﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EB5 RID: 3765
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonPendingAction : IMessage<RogueCommonPendingAction>, IMessage, IEquatable<RogueCommonPendingAction>, IDeepCloneable<RogueCommonPendingAction>, IBufferMessage
	{
		// Token: 0x17002FBD RID: 12221
		// (get) Token: 0x0600A8AF RID: 43183 RVA: 0x001C773D File Offset: 0x001C593D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonPendingAction> Parser
		{
			get
			{
				return RogueCommonPendingAction._parser;
			}
		}

		// Token: 0x17002FBE RID: 12222
		// (get) Token: 0x0600A8B0 RID: 43184 RVA: 0x001C7744 File Offset: 0x001C5944
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonPendingActionReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002FBF RID: 12223
		// (get) Token: 0x0600A8B1 RID: 43185 RVA: 0x001C7756 File Offset: 0x001C5956
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonPendingAction.Descriptor;
			}
		}

		// Token: 0x0600A8B2 RID: 43186 RVA: 0x001C775D File Offset: 0x001C595D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonPendingAction()
		{
		}

		// Token: 0x0600A8B3 RID: 43187 RVA: 0x001C7768 File Offset: 0x001C5968
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonPendingAction(RogueCommonPendingAction other) : this()
		{
			this.queuePosition_ = other.queuePosition_;
			this.rogueAction_ = ((other.rogueAction_ != null) ? other.rogueAction_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A8B4 RID: 43188 RVA: 0x001C77B4 File Offset: 0x001C59B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonPendingAction Clone()
		{
			return new RogueCommonPendingAction(this);
		}

		// Token: 0x17002FC0 RID: 12224
		// (get) Token: 0x0600A8B5 RID: 43189 RVA: 0x001C77BC File Offset: 0x001C59BC
		// (set) Token: 0x0600A8B6 RID: 43190 RVA: 0x001C77C4 File Offset: 0x001C59C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint QueuePosition
		{
			get
			{
				return this.queuePosition_;
			}
			set
			{
				this.queuePosition_ = value;
			}
		}

		// Token: 0x17002FC1 RID: 12225
		// (get) Token: 0x0600A8B7 RID: 43191 RVA: 0x001C77CD File Offset: 0x001C59CD
		// (set) Token: 0x0600A8B8 RID: 43192 RVA: 0x001C77D5 File Offset: 0x001C59D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueAction RogueAction
		{
			get
			{
				return this.rogueAction_;
			}
			set
			{
				this.rogueAction_ = value;
			}
		}

		// Token: 0x0600A8B9 RID: 43193 RVA: 0x001C77DE File Offset: 0x001C59DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonPendingAction);
		}

		// Token: 0x0600A8BA RID: 43194 RVA: 0x001C77EC File Offset: 0x001C59EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonPendingAction other)
		{
			return other != null && (other == this || (this.QueuePosition == other.QueuePosition && object.Equals(this.RogueAction, other.RogueAction) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A8BB RID: 43195 RVA: 0x001C783C File Offset: 0x001C5A3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.QueuePosition != 0U)
			{
				num ^= this.QueuePosition.GetHashCode();
			}
			if (this.rogueAction_ != null)
			{
				num ^= this.RogueAction.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A8BC RID: 43196 RVA: 0x001C7891 File Offset: 0x001C5A91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A8BD RID: 43197 RVA: 0x001C7899 File Offset: 0x001C5A99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A8BE RID: 43198 RVA: 0x001C78A4 File Offset: 0x001C5AA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.QueuePosition != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.QueuePosition);
			}
			if (this.rogueAction_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.RogueAction);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A8BF RID: 43199 RVA: 0x001C7900 File Offset: 0x001C5B00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.QueuePosition != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.QueuePosition);
			}
			if (this.rogueAction_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueAction);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A8C0 RID: 43200 RVA: 0x001C7958 File Offset: 0x001C5B58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonPendingAction other)
		{
			if (other == null)
			{
				return;
			}
			if (other.QueuePosition != 0U)
			{
				this.QueuePosition = other.QueuePosition;
			}
			if (other.rogueAction_ != null)
			{
				if (this.rogueAction_ == null)
				{
					this.RogueAction = new RogueAction();
				}
				this.RogueAction.MergeFrom(other.RogueAction);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A8C1 RID: 43201 RVA: 0x001C79C0 File Offset: 0x001C5BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A8C2 RID: 43202 RVA: 0x001C79CC File Offset: 0x001C5BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					if (num != 98U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.rogueAction_ == null)
						{
							this.RogueAction = new RogueAction();
						}
						input.ReadMessage(this.RogueAction);
					}
				}
				else
				{
					this.QueuePosition = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400447B RID: 17531
		private static readonly MessageParser<RogueCommonPendingAction> _parser = new MessageParser<RogueCommonPendingAction>(() => new RogueCommonPendingAction());

		// Token: 0x0400447C RID: 17532
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400447D RID: 17533
		public const int QueuePositionFieldNumber = 11;

		// Token: 0x0400447E RID: 17534
		private uint queuePosition_;

		// Token: 0x0400447F RID: 17535
		public const int RogueActionFieldNumber = 12;

		// Token: 0x04004480 RID: 17536
		private RogueAction rogueAction_;
	}
}
